package com.gdut.demo.message;


import org.springframework.web.multipart.MultipartFile;

/**
 * 该类描述了在消息中包含的内容
 */
public class MessageFormat {

    //发送者 or 接收者
    private String user;

    //对应的算法名称
    private String algorithm;

    //是否包含文件
    private boolean fileExist;

    //文件
    private MultipartFile file;

    //其他信息
    private String info;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getAlgorithm() {
        return algorithm;
    }

    public void setAlgorithm(String algorithm) {
        this.algorithm = algorithm;
    }

    public boolean getFileExist() {
        return fileExist;
    }

    public void setFileExist(boolean fileExist) {
        this.fileExist = fileExist;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
